-- GENERATED SPELL FOR [Dragonflayer Forge Master] --


function spell0_24079(pUnit, Event) --@Burning Brand,n/a--
pUnit:FullCastSpellOnTarget(43757,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24079', 12302, 1)
end

function spell1_24079(pUnit, Event) --@Burning Brand,n/a--
pUnit:FullCastSpellOnTarget(59601,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24079', 12324, 1)
end

function spell2_24079(pUnit, Event) --@Cauterize,n/a--
pUnit:FullCastSpellOnTarget(60211,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24079', 1000, 1)
end

function Sorts_24079(pUnit, Event)
local choix_sorts_24079 = math.random(0, 2)
if choix_sorts_24079 == 0 then
pUnit:RegisterEvent('spell0_24079', 1, 1)
end
if choix_sorts_24079 == 1 then
pUnit:RegisterEvent('spell1_24079', 1, 1)
end
if choix_sorts_24079 == 2 then
pUnit:RegisterEvent('spell2_24079', 1, 1)
end
end

function mob24079_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24079', math.random(1500, 3000), 1)
end

function mob24079_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24079_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24079_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24079, 1, 'mob24079_Action')
RegisterUnitEvent(24079, 2, 'mob24079_Leave')
RegisterUnitEvent(24079, 3, 'mob24079_Kill')
RegisterUnitEvent(24079, 4, 'mob24079_Die')
